package com.WPMS.test;

import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.wifi.MockWifiManager;
import android.test.mock.MockContext;
import android.util.Log;

public class WiFiPositioningMockContext extends MockContext 
{
	public IntentFilter registeredReceiverIntentFilter;

	@Override
	/**
	 * Create an audit of what the WiFiPositioningSystem test object
	 * has called
	 */
	public Intent registerReceiver(BroadcastReceiver receiver,
			IntentFilter filter) 
	{
		registeredReceiverIntentFilter = filter;
		
		return super.registerReceiver(receiver, filter);
	}

	@Override
	public Object getSystemService(String name) 
	{
		Log.d("Test", "WPSMockContext.getSystemService");
		
		return new MockWifiManager();
	}
	
	
	
	

}
